//
//  JPFComModel.h
//  JPFCore
//
//  Created by JPFei on 2019/3/21.
//  Copyright © 2019 JPF All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


@interface JPFComModel : NSObject

@property (nonatomic, strong) NSDictionary *dic;

/*!
 *  实例赋值
 *
 *  @param dic 赋值字典数据
 *
 *  @return model对象
 */
- (instancetype)initValuesWithDic:(nullable NSDictionary *)dic;


/*!
 *  使用字典赋值
 *   initValuesWithDic里面调用，子类重写此方法dic类型一定是不为空的字典
 *
 *  @param dic 赋值字典数据
 */
- (void)setValuesWithDic:(NSDictionary *)dic;

/*!
 * @brief 转字典
 * @author jpf
 */
- (NSDictionary *)toDictionary;

@end

NS_ASSUME_NONNULL_END
